package org.neurone.application.impl;

import org.neurone.application.ApplicationFace;
import org.neurone.domain.Application;
import org.neurone.userspace.dao.DaoServer;

public class ApplicationFaceLocalFactory {
	protected DaoServer daoServer;
	
	public ApplicationFaceLocal getNewApplicationFace(Long applicationID)
	{
		ApplicationFaceLocal ufl = new ApplicationFaceLocal();
		ufl.setApplicationDao(this.daoServer.getApplicationDao());
		ufl.initByApplicationID(applicationID);
		
		return ufl;
	}
	public ApplicationFaceLocal getNewApplicationFace(String applicationKey)
	{
		ApplicationFaceLocal ufl = new ApplicationFaceLocal();
		ufl.setApplicationDao(this.daoServer.getApplicationDao());
		ufl.initByApplicationKey(applicationKey);
		
		return ufl;
	}
	public DaoServer getDaoServer() {
		return daoServer;
	}

	public void setDaoServer(DaoServer daoServer) {
		this.daoServer = daoServer;
	}
}
